﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PartyForumDital.aspx.cs" Inherits="ZHDJ.MobileInterface.html.PartyForumDital" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/baseForum.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
		<p class="title tie_title mb10"><%=ForumTitle%></p>
		<div class="list">
			<div class="overflow pb10">
				<div class="img_bg fl"><img src="<%=ImagUrl %>" alt="" /></div>
				<div class="fl">
					<p class="name"><%=ForumCreateBy%></p>
					<p class="date"><%=CreateTime%></p>
				</div>
				<span class="fr floor">【楼主】</span>
			</div>
			<div class="dialog">
				<div class="dialog_top"></div>
				<div class="dialog_content">
					<p class="detail"><%=ForumContent%></p>
				</div>
			</div>
		</div> 
        
        <asp:Repeater ID="rptComment" runat="server">
            <ItemTemplate>
		        <div class="list">
			        <div class="overflow pb10">
				        <div class="img_bg fl"><img src="<%#Eval("ImageUrl")%>" alt="" /></div>
				        <div class="fl">
					        <p class="name"><%#Eval("UserName")%></p>
					        <p class="date"><%#Eval("ReplyTime")%></p>
				        </div>
				        <span class="fr floor">【<%#Eval("RowNumber")%>楼】</span>
			        </div>
			        <div class="dialog">
				        <div class="dialog_top"></div>
				        <div class="dialog_content">
					        <p class="detail"><%#Eval("ReplyContent")%></p>
				        </div>
			        </div>
		        </div> 
            </ItemTemplate>
        </asp:Repeater> 
         
		<%--<div class="page">
            <div>
                <asp:hyperlink id="lnkFirst" runat="server" class="first"></asp:hyperlink>
            </div>

			<div>
                <asp:hyperlink id="lnkPrev" runat="server"  class="prev"></asp:hyperlink>
            </div>

			<span class="total"><em><%=CurrentPageStr%></em>/<%=TotalPageStr%></span>

			<div>
                <asp:hyperlink id="lnkNext" runat="server" class="next"></asp:hyperlink> 
            </div>

			<div>
                <asp:hyperlink id="lnkLast" runat="server" class="last"></asp:hyperlink>
            </div>--%>
			<%--<div><a href="#" class="first"></a></div>
			<div><a href="#" class="prev"></a></div>
			<span class="total"><em><asp:label id="lblCurrentPage" runat="server"></asp:label></em>/<asp:label id="lblTotalPage" runat="server"></asp:label></span>
			<div><a href="#" class="next"></a></div>
			<div><a href="#" class="last"></a></div>--%>
         
     <%--<asp:hyperlink id="Hyperlink1" runat="server">首页</asp:hyperlink>
     <asp:hyperlink id="lnkPrev" runat="server">上页</asp:hyperlink> 
     <asp:hyperlink id="lnkNext" runat="server">下页</asp:hyperlink> 
     <asp:hyperlink id="Hyperlink2" runat="server">尾页</asp:hyperlink>--%>
		<%--</div>--%>
	</div>
    </form>
</body>
    <script type="text/javascript" >
        if (document.getElementsByTagName("img").length != null && document.getElementsByTagName("img").length > 0) {
            var smileyName = "[[微笑][大笑][眨眼][桃心][害羞][惊讶][疑问][天真][鬼脸][囧][悲伤][白眼][坏笑][板砖][流泪][尴尬][鄙视][很给力][挖鼻孔][晕][切][睡觉][鼓掌][嘘][痛恨][忐忑][失望][困惑][担心][纠结][思考][窃喜][得意][呆][闭嘴][汗][吐][惊恐][亲亲][胜利][暴打][吃饭][赞][喷血][再见][生病][拥抱][无聊][灵感][赞同][愤怒][抓狂][爱心][心碎][菜刀][OK][强][弱][便便][礼物][蛋糕][元宝][天使][恶魔]";
            var imObj = document.getElementsByTagName("img");
            for (var i = 0; i < imObj.length; i++) {
                if (imObj[i].alt != null && imObj[i].alt != '' && smileyName.indexOf("[" + imObj[i].alt + "]", 0) > 0) { 
                    imObj[i].style.width = "auto";
                    imObj[i].style.height = "36";
                    imObj[i].style.display = "inline-block";
                }
                else {
                    imObj[i].style.width = "";
                    imObj[i].style.height = "";
                }
            }
        }

        //for (var i = 0; i < document.getElementsByTagName("p").length; i++) {
        //    if (document.getElementsByTagName("p")[i].innerHTML == "")
        //        document.getElementsByTagName("p")[i].outerHTML = "";document.getElementsByTagName("smiley");
        //}
    </script>
</html>
